-- GENERATED SPELL FOR [General Fangferror] --


function spell0_6650(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6650', 572, 1)
end

function spell1_6650(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(18812,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6650', 2000, 1)
end

function spell2_6650(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6650', 524, 1)
end

function Sorts_6650(pUnit, Event)
local choix_sorts_6650 = math.random(0, 2)
if choix_sorts_6650 == 0 then
pUnit:RegisterEvent('spell0_6650', 1, 1)
end
if choix_sorts_6650 == 1 then
pUnit:RegisterEvent('spell1_6650', 1, 1)
end
if choix_sorts_6650 == 2 then
pUnit:RegisterEvent('spell2_6650', 1, 1)
end
end

function mob6650_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6650', math.random(1500, 3000), 1)
end

function mob6650_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6650_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6650_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6650, 1, 'mob6650_Action')
RegisterUnitEvent(6650, 2, 'mob6650_Leave')
RegisterUnitEvent(6650, 3, 'mob6650_Kill')
RegisterUnitEvent(6650, 4, 'mob6650_Die')
